<!DOCTYPE html>
<html>
<head>
    <title>Go WebAssembly Demo</title>
</head>
<body>
<h1>Go WebAssembly Example</h1>
<script src="wasm_exec.js"></script>
<script>
    const go = new Go();
    WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => {
        go.run(result.instance);
    });
    console.log(add(2, 3)); // 输出 5
</script>
</body>
</html>
